file1 = open('flow_label.txt', 'r', encoding='utf-8')
# file2 = open('flow_data.txt', 'w', encoding='utf-8')
file2 = open('new_flow_label.txt', 'w', encoding='utf-8')
data=[]
max=0
for line in file1.readlines():
    if line == '\n':
        # if len(data)<13:
        #     data.append('-1,-1,-1,-1,-1')
        for _ in range(len(data)+1,13+1):
            # data.append('-1,-1,-1,-1,-1\n')
            data.append('-1\n')
        print(data,len(data))
        for i in data:
            file2.write(i)
        file2.write('\n')
        data=[]
    else:
        data.append(line)
    # file2.write(line)
print('输出成功....')
# max=13
# print(max)
file1.close()
file2.close()